package com.tianqu.tms.www.settle.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.tianqu.tms.core.base.TmsAction;
import com.tianqu.tms.core.base.UserContext;
import com.tianqu.tms.core.util.TmsConstants;
import com.tianqu.tms.entity.TransferFinanceInfo;
import com.tianqu.tms.www.settle.viewhelper.TransferSettleViewHelper;

public class TransferSettleSearchResultAction extends TmsAction {

	@Override
	protected ActionForward doAction(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response,
			UserContext uc) throws Exception {
		
		TransferSettleViewHelper view = (TransferSettleViewHelper)uc.getAttribute(TmsConstants.VIEWHELP);
		
		//根据开始时间和结束时间查询结算员
		String startDate = view.getStartDate();
		String endDate = view.getEndDate();
		TransferFinanceInfo getPerson = new TransferFinanceInfo();
		List list = getPerson.getChargeInfoByPeriod(startDate,endDate);
		
		return mapping.findForward(TmsConstants.SUCCESS);
	}

}
